<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>goods-type</title>
</head>
<body>
    {# if条件判断 #}
    {% if good_type == 1 %}
    <h1>{{name}}:一级商品</h1>
    {% elif good_type == 2 %}
    <h1>{{name}}:二级商品</h1>
    {% else %}
    <h1>{{name}}:普通商品</h1>
    {% endif %}
</body>
</html>